package com.ruoyi.business.domain.bo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * 档案转出业务对象 file_transfer_out
 *
 * @author sal
 * @date 2024-11-25
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class FileTransferOutBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private String id;

    /**
     * 转至单位
     */
    @NotBlank(message = "转至单位不能为空", groups = { AddGroup.class, EditGroup.class })
    private String goToUnits;

    /**
     * 转出时间
     */
    @NotNull(message = "转出时间不能为空", groups = { AddGroup.class, EditGroup.class })
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd")
    private Date goToDate;

    /**
     * 转出原因
     */
    @NotBlank(message = "转出原因不能为空", groups = { AddGroup.class, EditGroup.class })
    private String goToCause;

    /**
     * 转出人员
     */
    @NotNull(message = "转出人员不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long goToPerson;

    /**
     * 经办人
     */
    @NotNull(message = "经办人不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long attn;

    /**
     * 审批状态
     */
//    @NotBlank(message = "审批状态不能为空", groups = { AddGroup.class, EditGroup.class })
    private String approvalStatus;

    /**
     * 备注
     */
    private String remarks;
    private String type;

    /**
     * 附件
     */
    private String attachments;
}
